FROM golang:latest AS build
WORKDIR /app
COPY . .
RUN go build -o helloworld

FROM scratch
COPY --from=build /app/helloworld /helloworld
CMD ["/helloworld"]